﻿package rosa.events {	import rosa.services.ServiceError;		/**	 * Interface that defines the behaviour of the event dispatching.	 * @author Joseba Alonso	 */	public interface IEventHandler 	{		/**		 * Will be called when the service sends a Result event		 */		function handleResultEvent(eventName:String,eventData:* = null) : void;		/**		 * Will be called when the service sends a Fault event		 */		function handleFaultEvent(eventName:String,eventError:ServiceError):void;		/**		 * Will be called when the service finished a call		 */		function handleResponseEvent(eventName:String,eventData:* = null,eventError:ServiceError = null) : void;		/**		 * Will be called when the service starts a call		 */		function handleCallEvent(eventName:String):void;
		
		function handleEvent(event:RosaEvent):void;	}}